'use strict'

class reviewing {
        
    constructor(){
       //this.param = '/:id/:type'
    }

    async list (c) {
        let data = await c.service.model.db_userstep.getreviewing()
        c.send(data,200)
    }

    async get (c) {

        let funcid = c.param.id;

        let result = await c.service.model.db_userstep.getStepDetail(funcid);
        if(!result){
            c.send(result,400);
        }
        c.send(result,200)

    }

    async post(c){
        
    }

}

module.exports = reviewing